package com.dcy.znoa.controller.publiz.model.oper;

/**
 * @author pengyu
 */

import com.baomidou.mybatisplus.enums.IdType;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AddOperModel {

    @NotNull(message="operType不能为空")
    Integer operType;
    @NotNull
    String phoneNo;
    @NotNull(message="operName不能为空")
    @Size(min=1,max=30,message="用户名称长度只能在1-30之间")
    String operName;

    String password;
    @NotNull(message="compId不能为空")
    Long compId;
    @NotNull(message="depId不能为空")
    Long depId;

    Integer isDepDuty;
//    @NotNull(message="dutyId不能为空")
    Long dutyId;

    Integer dutyNo;

    Long superiorId;
    @NotNull(message="sex不能为空")
    Integer sex;

    String idCard;

    String employeeNo;

    String headPic;

    String qrCode;

    String account;

    String email;

    Integer pushId;

    String createOperName;

    Date createTime = new Date();

    Integer validFlag = 1 ;

    Integer isAudit = 1;//是否通过审核:默认0：未操作；1：通过；2：不通过

}
